package com.example.demo;

import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * author 陈伯瑞
 * date 2020/5/18 0018 23:07
 * version 1.0
 **/
public class MyPasswordEncoder implements PasswordEncoder {
    @Override
    public String encode(CharSequence charSequence) {
        return charSequence.toString();
    }

    @Override
    public boolean matches(CharSequence charSequence, String s) {
        return s.equals(charSequence.toString());
    }
    /**
     *
     */
}
